package com.ruoyi.forum.service;

import com.ruoyi.forum.dao.CircleNoticeReadDao;
import com.ruoyi.forum.domain.CircleNoticeRead;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * service
 *
 * @author lxk
 * @date 2018-10-17 16:26:12
 */
@Service("circleNoticeReadService")
public class CircleNoticeReadService {

    @Autowired
    private CircleNoticeReadDao circleNoticeReadDao;

    /**
     * 更新
     *
     * @param circleNoticeRead
     */
    @Transactional(rollbackFor = Exception.class)
    public void update(CircleNoticeRead circleNoticeRead) {
        circleNoticeReadDao.updateById(circleNoticeRead);
    }

    public CircleNoticeRead get(String uid) {
        return circleNoticeReadDao.getById(uid);
    }
}